home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / medhu_va.swf / scripts / DefineSprite_249 / frame_11 / DoAction.as
Text File  |  2010-11-09  |  562b  |  31 lines

  1. stop();
  2. cnt = 0;
  3. var s = 0;
  4. v2.onPress = function()
  5. {
  6.    _parent.ins11._visible = false;
  7.    _parent.ins12._visible = false;
  8.    this.startDrag();
  9.    if(cnt == 1)
  10.    {
  11.       v2.gotoAndStop(3);
  12.    }
  13. };
  14. v2.onRelease = function()
  15. {
  16.    if(plates.plate.hitTest(v2) || _parent.tava.hitTest(v2))
  17.    {
  18.       _parent.ins12._visible = true;
  19.       stopDrag();
  20.       this._x = v2._x;
  21.       this._y = v2._y;
  22.       cnt++;
  23.    }
  24.    if(tava.hitTest(v2))
  25.    {
  26.       v2._visible = false;
  27.       dupv2._visible = true;
  28.       dupv2.gotoAndPlay(2);
  29.    }
  30. };
  31.